home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ For TASM
/
USRGUIDE.PAK
/
CSPEC.ASM
< prev
next >
Wrap
Assembly Source File
|
1996-02-21
|
520b
|
25 lines
; Turbo Assembler example. Copyright (c) 1993 By Borland International, Inc.
;
; CSPEC.ASM
;
; Usage: bcc link2asm.cpp cspec.asm
;
; From the Turbo Assembler User's Guide, Ch. 18
.MODEL SMALL
.DATA
EXTRN C Flag:word
.CODE
PUBLIC C ToggleFlag
ToggleFlag PROC
cmp [Flag],0
jz SetTheFlag
mov [Flag],0
jmp short EndToggleFlag
SetTheFlag:
mov [Flag],1
EndToggleFlag:
ret
ToggleFlag ENDP
END